import { createApp } from 'vue';
import router from './router/router';
import App from './App.vue';
import './style.css';

import ElementPlus from 'element-plus';
import * as Icons from '@element-plus/icons-vue'; // 引入所有图标
import 'element-plus/dist/index.css';

import './mock/mock.js';


// main.js
// import axios from 'axios';
// app.config.globalProperties.$axios = axios; // 全局挂载




import store from './store'

// 创建Vue应用实例
const app = createApp(App);

// 注册所有图标为全局组件
Object.keys(Icons).forEach(key => {
  app.component(key, Icons[key]);
});

// 挂载Element Plus
app.use(ElementPlus);

// 挂载router
app.use(router)


//挂载store
app.use(store)

app.mount('#app');
